package com.rinlink.gateway.jt808.exception;

import com.rinlink.gateway.jt808.common.StatusCode;
import org.springframework.http.HttpStatus;

public class HttpApiException extends Exception {

    private HttpStatus httpStatus;

    private StatusCode statusCode;

    public HttpApiException(HttpStatus httpStatus, StatusCode statusCode,String msg){
        super(msg);
        this.httpStatus = httpStatus;
        this.statusCode = statusCode;
    }

    public HttpStatus getHttpStatus() {
        return httpStatus;
    }

    public StatusCode getStatusCode() {
        return statusCode;
    }
}
